#include "ImagePNG.h"
#include <iostream>
#include "png.h"

using namespace gull::core;
using namespace std;

ImagePNG::ImagePNG(const char* path)
{
	/*FILE *fp;
	png_byte check[8];
	
	fp = fopen (path, "rb");
	if (!fp)
		cout << "error: couldn't open " <<  path << endl;
	
	fread (check, 1, sizeof (check), fp);
	if (!png_check_sig (check, sizeof (check)))
	{
		cout << "error: " << path << " is not a valid PNG image!\n" << endl;
		fclose (fp);
	}
	
	
	
	png_structp png_ptr = png_create_read_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL);
	
	if (!png_ptr)
	{
		fclose (fp);
	}
	
	png_infop info_ptr = png_create_info_struct(png_ptr);
	if (!info_ptr)
	{
		fclose (fp);
		png_destroy_read_struct (&png_ptr, NULL, NULL);
	}*/
	
}


ImagePNG::~ImagePNG()
{
	
}

